package com.example.androidexample.ndk;

import android.os.Bundle;
import android.util.Log;
import android.view.View;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.example.androidexample.R;
import com.example.clib.CppOpLibProxy;

public class NDKForCppActivity extends AppCompatActivity {

    private static final String TAG = "NDKForCppActivity";

    private CppOpLibProxy cppOpLibProxy;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_ndk_cpp);
        cppOpLibProxy = new CppOpLibProxy();
    }

    public void printSizeInfo(View view) {
        Log.d(TAG, "printSizeInfo: " + cppOpLibProxy.printSizeInfo());
    }

    public void freePointTest(View view) {
        Log.d(TAG, "printSizeInfo: " + cppOpLibProxy.freePointTest());
    }
}
